<%--
  Created by IntelliJ IDEA.
  User: diaominyh
  Date: 2022/3/31
  Time: 21:11
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<html>
<head>
    <title>工作笔记</title>
</head>
<body>
<div align="center">
    <div style="display: inline-block;">
        <h1>工作笔记</h1>
        <div style="text-align: right"><a href="${pageContext.request.contextPath}/working_add.jsp">添加笔记</a></div>
        <table border="1">
            <tr align="center" style="font-weight: bold;background-color: aqua">
                <td>笔记标题</td>
                <td>笔记分类</td>
                <td>笔记时间</td>
                <td>操作</td>
            </tr>
            <c:forEach var="list" items="${workingList}" varStatus="status">
                <tr align="center" <c:if test="${status.index%2==1}">style="background-color: aqua" </c:if>>
                    <td>${list.title}</td>
                    <td><c:choose>
                        <c:when test="${list.type==1}">
                            技术
                        </c:when>
                        <c:when test="${list.type==2}">
                            行政
                        </c:when>
                        <c:when test="${list.type==3}">
                            人事
                        </c:when>
                    </c:choose></td>
                    <td>${list.createDate}</td>
                    <td><a href="${pageContext.request.contextPath}/working?opr=getOne&id=${list.id}">查看</a></td>
                </tr>
            </c:forEach>
        </table>
    </div>
</div>
</body>
</html>
